package com.woniuxy.financeassembly.apiimpl;


import com.woniuxy.common.Result;
import com.woniuxy.financeassembly.service.IFinancialManagementBillService;
import com.woniuxy.hotel.FinancialBillAPI;
import com.woniuxy.hotel.form.HotelBillForm;
import lombok.extern.slf4j.Slf4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zz
 * @since 2021-05-24
 */
@RestController
@Slf4j
public class FinancialManagementBillController implements FinancialBillAPI {

    @Autowired
    private IFinancialManagementBillService billService;


    //生成酒店的账单记录
    @Override
    public Result addHotelBill(HotelBillForm hotelBillForm) {
        billService.addHotelBill(hotelBillForm);
        log.info("生成的商家账单{}",hotelBillForm);
        return Result.success();
    }
}

